# 皮肤分析
import requests
api_key = "qBAb8J5wOj-JqqxYQEk1mXd6Du0SoLGH"
api_secret = "B3JCL3W4crkVUF1oNkiwAC-1zzVy9V_5"

face_url = "https://api-cn.faceplusplus.com/facepp/v1/skinanalyze"
img_url = " "

payload = {
    "image_url":img_url,
    'api_key': api_key,
    'api_secret': api_secret,
}
r = requests.post(face_detect_url, params=payload)
r.json()

# 面部特征
api_key = "qBAb8J5wOj-JqqxYQEk1mXd6Du0SoLGH"
api_secret = "B3JCL3W4crkVUF1oNkiwAC-1zzVy9V_5"

face_url = "https://api-cn.faceplusplus.com/facepp/v1/facialfeatures"
img_url = " "

payload = {
    "image_url":img_url,
    'api_key': api_key,
    'api_secret': api_secret,
}
r = requests.post(face_detect_url, params=payload)
r.json()

# 颜值评分
api_key = "qBAb8J5wOj-JqqxYQEk1mXd6Du0SoLGH"
api_secret = "B3JCL3W4crkVUF1oNkiwAC-1zzVy9V_5"

face_detect_url = "https://api-cn.faceplusplus.com/facepp/v3/detect"
img_url = " "

payload = {
    "image_url":img_url,
    'api_key': api_key,
    'api_secret': api_secret,
    'return_attributes':'beauty', 
}
r = requests.post(face_detect_url, params=payload)
r.json()['faces'][0]['attributes']